
#ifndef EFFECT_H_
#define EFFECT_H_

#include "util.h"

#define MAX_FRAME_NUM     9

typedef struct _effect {
    int glyph[MAX_FRAME_NUM];
    Pos pos[MAX_FRAME_NUM];
    unsigned char frame_num;
    int frame_delay;
} Effect;

void LineEffectInit(Effect *e, int glyph, 
                    char startX, char startY, Dir d,
                    unsigned char n, int delay);
void LineEffectDraw(Effect *e);

#endif
